/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.messageServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.messageServiceSoap
 * @generated
 */
public class messageSoap implements Serializable {
	public static messageSoap toSoapModel(message model) {
		messageSoap soapModel = new messageSoap();

		soapModel.setMessageId(model.getMessageId());
		soapModel.setEventactioncode(model.getEventactioncode());
		soapModel.setEventdatetime(model.getEventdatetime());
		soapModel.setEventoutcome(model.getEventoutcome());
		soapModel.setSourceaddress(model.getSourceaddress());
		soapModel.setEventid_id(model.getEventid_id());

		return soapModel;
	}

	public static messageSoap[] toSoapModels(message[] models) {
		messageSoap[] soapModels = new messageSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static messageSoap[][] toSoapModels(message[][] models) {
		messageSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new messageSoap[models.length][models[0].length];
		}
		else {
			soapModels = new messageSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static messageSoap[] toSoapModels(List<message> models) {
		List<messageSoap> soapModels = new ArrayList<messageSoap>(models.size());

		for (message model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new messageSoap[soapModels.size()]);
	}

	public messageSoap() {
	}

	public long getPrimaryKey() {
		return _messageId;
	}

	public void setPrimaryKey(long pk) {
		setMessageId(pk);
	}

	public long getMessageId() {
		return _messageId;
	}

	public void setMessageId(long messageId) {
		_messageId = messageId;
	}

	public String getEventactioncode() {
		return _eventactioncode;
	}

	public void setEventactioncode(String eventactioncode) {
		_eventactioncode = eventactioncode;
	}

	public String getEventdatetime() {
		return _eventdatetime;
	}

	public void setEventdatetime(String eventdatetime) {
		_eventdatetime = eventdatetime;
	}

	public long getEventoutcome() {
		return _eventoutcome;
	}

	public void setEventoutcome(long eventoutcome) {
		_eventoutcome = eventoutcome;
	}

	public String getSourceaddress() {
		return _sourceaddress;
	}

	public void setSourceaddress(String sourceaddress) {
		_sourceaddress = sourceaddress;
	}

	public long getEventid_id() {
		return _eventid_id;
	}

	public void setEventid_id(long eventid_id) {
		_eventid_id = eventid_id;
	}

	private long _messageId;
	private String _eventactioncode;
	private String _eventdatetime;
	private long _eventoutcome;
	private String _sourceaddress;
	private long _eventid_id;
}